<?php


namespace app\api\controller\v1;


use app\common\controller\BaseController;
use app\common\model\Agreement as AgreementModel;

class Agreement extends BaseController
{
    /**
     * 查看协议列表
     * @return mixed
     */
    public function index()
    {
        $list = (new AgreementModel())->getAgreementList();
        return self::showResCode('获取成功',$list);
    }

    public function detail()
    {
        $data = (new AgreementModel())->getAgreementDetail();
        return self::showResCode('获取成功',$data);
    }
}